﻿using System;
using System.Collections.Generic;
using TheLocal.Common;

namespace TheLocal.Model
{
    public class Country
    {
        private readonly IList<Category> categories;

        public Country()
        {
            this.categories = new List<Category>();
        }

        public string Name { get; set; }

        public string Code { get; set; }

        private string image;

        public string Image
        {
            get
            {
                return Constants.LocalImagesPrefix + this.image;
            }
            set
            {
                if (this.image != value)
                {
                    this.image = value;
                }
            }
        }

        public IList<Category> Categories
        {
            get
            {
                return this.categories;
            }
        }
    }
}
